package com.eqdd.yiqidian.ui.gongneng.renshi.gonggao;

import android.os.Bundle;
import android.view.View;

import com.eqdd.annotation.datasave.DealCodeClass;
import com.eqdd.yiqidian.annotation.DealCode;
import com.eqdd.yiqidian.base.Config;
import com.eqdd.yiqidian.bean.EnterBean;
import com.eqdd.yiqidian.ui.base.BaseEnterActivity;
import com.eqdd.yiqidian.ui.gongneng.renshi.RenshiActivity$$DealCodeInjector;
import com.eqdd.yiqidian.ui.mine.shenqing.ShowMyNoticeActivity;
import com.eqdd.yiqidian.utils.ToastUtil;

/**
 * Created by lvzhihao on 17-4-19.
 */

public class GonggaoGuanliActivity extends BaseEnterActivity {

    private Class[] classes = new Class[]{
            CreateTrumpetActivity.class,
            ShowTrumpetListActivity.class,
            CreateNoticeActivity.class,
            ShowMyNoticeActivity.class,
            null,
    };


    @Override
    public void itemClick(int p) {
        if (classes[p] != null) {
            if (p == 0) {
                Bundle bundle = new Bundle();
                bundle.putString(Config.TITLE, "发布小喇叭");
                bundle.putInt(Config.MAX_NUM, 80);
                startActivity(classes[p], bundle);
            } else {
                startActivity(classes[p]);
            }
        } else {
            ToastUtil.showShort("该模块暂未开发");
        }
    }

    @Override
    public void initEnterData() {
        isDealCode = true;
        initTopTitleBar(View.VISIBLE, "公告管理");

        enterBeans.add(new EnterBean("发布小喇叭"));
        enterBeans.add(new EnterBean("查看发布的小喇叭"));
        enterBeans.add(new EnterBean("发布公告"));
        enterBeans.add(new EnterBean("查看发布的公告"));
        enterBeans.add(new EnterBean("流程查询"));
    }

}
